package com.feng.study.demo;

import com.feng.study.value.People;
import com.feng.study.value.User;

/**
 * @Author: Zeng ShaoYong
 * @Date: 2021-10-09
 * @Description:
 */
public class CopyObjectDemo {
    public static void main(String[] args) {
        User user = new User();
        user.setAge(11).setName("李四");
        People people = new People();
        people.setLastName("zeng");
//        People map = BeanMapper.map(user, People.class);
//        System.out.println(map);
        people.setAge(user.getAge());
        people.setFirstName(user.getName());
        people.setGender(user.getGender());
        System.out.println(people);

        String str1="aaa,bbb,ccc";
        System.out.println(str1.indexOf(";"));
    }
}
